fixed non-existent prefs directory bug