Fix to UserPreferencesModel.php