fixes simple search with paginate