Fix relationship graph.