Solved error with get_studies_by_department