Fix treeview formatting