Fix the search not work issue after add the pagination