fix minor save-as bug