fix discounts pagination