fixed the graph issues