fix bug in search results