fix offcet for paginator query