fix return on transaction