Fix bug in the search engine with keywords