Fixed an error on file-save-as.