fixed a major bug with maintaining myPrevNodeID