wrap tick in a transaction
Merge pull request #2 from sclasen/tick-transaction

wrap tick in a transaction