Fixed DomainModel IDs and inheritance