Fixed preference->set not adding new preferences.