solve autosave issue