treeview bug fixes