Fixed bugs when a node is disabled or identity