Fix bug in item search.