Fixed bug in ignoring battery