fix collapse for treeview