Fix for relations that are defined through option array.