fixed the bug in departmentList in manage and staff