fix invalid receipt data