fix department_tree