Fix assert in battle server