autosave and manual save feature fix