Changed how parent department is fetched