fixing LIKE condition for relations