Fixed judge ordering bug