Handle situation in which name of keyword is set to one of the synonyms

Closes #130