fix finding information about the battery capacity - issue #4