fixed crash in commit/rollback