diff --git a/clients_icons/clients_icons.py b/clients_icons/clients_icons.py
index 2d3faa0ebc6db661324e6cb5feb427e999b18029..632d9f041403848834521ad371a20a197437bbef 100644
--- a/clients_icons/clients_icons.py
+++ b/clients_icons/clients_icons.py
@@ -349,7 +349,13 @@ class ClientsIconsPlugin(GajimPlugin):
             if self.config['show_unknown_icon']:
                 model[iter_][pos] = self.default_pixbuf
             return
-        client_icon = clients.get(caps.split('#')[0].split()[0], None)
+
+        caps_ = caps.split('#')[0].split()
+        if caps_:
+            client_icon = clients.get(caps_[0].split()[0], None)
+        else:
+            client_icon = None
+
         if not client_icon:
             if self.config['show_unknown_icon']:
                 model[iter_][pos] = self.default_pixbuf
diff --git a/clients_icons/manifest.ini b/clients_icons/manifest.ini
index 9de60c3ef897503876c80cddd358866cd5915a33..bc0295f83f96b23830dbf3fba689ace4e7a44905 100644
--- a/clients_icons/manifest.ini
+++ b/clients_icons/manifest.ini
@@ -1,7 +1,7 @@
 [info]
 name: Clients icons
 short_name: clients_icons
-version: 1.3
+version: 1.4
 description: Shows the client icons in the roster
  and in groupchats.
  Depends: Gajim > r12506