Fix for #972 custom simple relationships