fixed crash in commit/rollback
Merge pull request #147 from Sage/master

fixed crash in commit/rollback