Fixed discount code array issue