fixed receipts bug for s3