small fix for synonyms detection