fixed transactions.rb