Prevent unsaved status of old file when creating a new