fix battery query