Fixed critical bug with revert transaction after starting new file