getDepartment bug fixed