Temporary fix for infinity battery bug

as described in issue #30