Fixed the problem with not inserting the department managers