Fix sequence numbers when tracing transaction.