fix a bug

When adding node, detect the current graph is fixed or not