fixed saveDiscount and getDiscount