fix bug on transaction update