Fix synonyms and replace synonyms