Fixed issue regarding accesing departmentid of employee