Fix ReceitpDetail.receiptId may be truncated.
Fix duplicates rows, with duplicate events listenning.