Fix problem undo/redo  node displacement