fix treeview bug