fixed the transaction error