fixed set bug, nodeId is now initialized with -1