fixed battery oscillation problems