bugfix: When saving an unmodified file using Save As, the file wasn't actually saved