Fixed bad code in transaction.