bug fix at GetNameNode, but still buggy