Fix autosave problem