Fixed a bug with the deletion of some cms domain objects.