fixes prefs issues