Small fix to the word re search