fixed prefs error