fix search paginate bugs