Fix issue about pagination, when try to go to next page with search
conditions, the result is not correct.