Fix crash of search with multiple words