[Fix] fix bug in update graph
Merge pull request #14 from Hyiiego/master

[Fix] fix bug in update graph