Fixed the prefs to be saved to one place