Correctly refresh the position when moving a node.