fix drawgraph