fix shared preference prefs