fixed error happening restart transaction in the same file
Merge branch 'master' of https://github.com/jstar88/SafeIO