fix saveAs cancel case