Remove the if clause around setting the node.name.