fix issue with not recognizing battery at 100% as 100%