Fixed the re-set the state of the node.