Fixed a bug when triying to remove a Corps linked to other Entities.