fix a bug that graph is not updated