fixed bug on graph data