(node.py) Fix node deletion