Fix any_relations always being false