fixed autosave for settings