battle bug fix