fix bug with battery percentage