Restored the file to its final state.