Fixed Settings.update function