Some fixes in sending discount codes