fix pagination with params