set prefs not working
Fix prefs