fixed battery bar animation