Fix variable names in transaction type