fix bug in getting node data (part2)