fixed a few things in prefs