fixed battle bug