fixed second bug in CupDiscount