SharedPreferences fix