fixed bug in adding synonyms