Fix bug with charging time