added missing saveSettings() call