Bug fix when changing a node name