Fix treeview sidebar misrepresenting certain folders