Fix crash in starting battles