fix battery gauge problem