fixed bug in setting the delay to choose a node.