Fix for max_prefs