Fixes issue with discount codes