Fixed bug in Prefs