bugfix to BattlePanel