treeview.saveState fix