Bug fixing for coupon code