Why is the battery level not displayed correctly?