(CDB) Fix error when changing departments for people