Fixed potential bug with file overwriting recoverable file.