Fix a couple issues affecting removal and input of batteries into battery boxes.