Fixed a bug with saveSettings

This prevented `userSettings.save();` to work correctly.