Update the node type