Fix coupon code limits checking