Fixed variable error in Transaction class'