Revert "fix bug in transactions."

This reverts commit ff9e4ba906d19d2ec4dc2f6a627b1fad2ea27623, which was entirely stupid.