Fix for bug in node.py