fixes autosave issue