Fix save Preferences