fix pagination order issue