paginate bug in search page is fixed