fix a little bug in the search view