Bug fix when searching words.