fix no results for search with view parameter