Fixed a problem with node selection when a node is deleted from the
network.