fix graph data bug