fixed crash on receiptcheck