fix pagination override issue