fixed the coupon bug