Fixed bug involving multiple deletions of registered nodes.