error fix in setting current node