fixing "$node" bug