fixed a bug in the search result viewer