Fixed referee rule matching.