fix bug for graph.go