Error corrected: create the file when it doesn't exist in SaveFileThread.