Fix issue with saving discounts to session