--- src/contacts-app.vala	2013-10-24 11:05:18.939065268 +0200
+++ src/contacts-app.vala	2013-10-24 11:07:32.964069626 +0200
@@ -182,6 +182,8 @@
 
             var e_store = selected_store as Edsf.PersonaStore;
 
+            GLib.Environment.set_variable ("FOLKS_PRIMARY_STORE", "eds:"+e_store.display_name, true);
+
             eds_source_registry.set_default_address_book (e_store.source);
 
             contacts_store.refresh ();
--- src/contacts-store.vala	2013-10-24 11:11:21.047077041 +0200
+++ src/contacts-store.vala	2013-10-24 11:14:52.679083922 +0200
@@ -52,8 +52,10 @@
 
   public void refresh () {
     foreach (var c in contacts) {
+      c.hide ();
       c.queue_changed (true);
     }
+    this.init ();
   }
 
   private bool individual_can_replace_at_split (Individual new_individual) {
@@ -140,6 +142,10 @@
     dont_suggest_link = new Gee.HashMultiMap<string, string> ();
     read_dont_suggest_db ();
 
+    this.init ();
+  }
+
+  private void init () {
     backend_store = BackendStore.dup ();
     aggregator = new IndividualAggregator ();
     aggregator.notify["is-quiescent"].connect ( (obj, pspec) => {
