fix to ensure relation type mapping can be set