debugged the case when the word is nowhere