fix for multiclass relationship search (experimental)