fix battery level estimate while charging