fix missing text node bug in treeMap