Serialize the node after inserting