Fix savesettings