fixed the hanging when no synonyms error