Correct node matching when adding new node.