coupon and discount bug fix