Battery reading fix