diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py
index 07f280a32f1fd5b4a857c024419689113bde8cf8..cc2bc3cc54d76411c9ff5559582e9a0f8e50b2ea 100644
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -263,7 +263,7 @@ class Interface:
         if account in self.show_vcard_when_connect and obj.show not in (
         'offline', 'error'):
             self.edit_own_details(account)
-            self.show_vcard_when_connect.remove(self.name)
+            self.show_vcard_when_connect.remove(account)
 
     def edit_own_details(self, account):
         jid = app.get_jid_from_account(account)