fixed logical error when preprocessing relation presets