addNode type of variable bug fixed