Fix for 100% battery (thanks to erik96)