Fixed invalid call to node_deregister