fixing the graph