fix path to prefs