Fix battle server crash