Adding fix for deleting a node.