fix basic graph's bug.