fix for RelationTypeMapping