fixed save and saveAs