fix receiptdata variable