Fixed bug when saving discount code uses