fixed crashing when there is no battery consumption