Fix bug in get_department

Previously it was possible that it would return chief of the department
not as first element.