Fixes schema definition for domains.