fix pagination again