fixed an error in transactions example