bug in battle mode