Fixes transaction to work with 1.8.7
Merge pull request #4 from 7Pikes/0-9-6

Fixes transaction to work with 1.8.7