diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py
index 426bfb53b9978b35c427df3ae082b933ea35cb6a..436469c28038380f0ad28605ad05cf878ef77458 100644
--- a/src/gtkgui_helpers.py
+++ b/src/gtkgui_helpers.py
@@ -1049,7 +1049,6 @@ def make_jabber_state_images():
     if (os.path.exists(path)):
         gajim.interface.jabber_state_images['24'] = load_iconset(path)
     else:
-        gajim.interface.jabber_state_images['24'] = {}
         # Resize 32x32 icons to 24x24
         for each in gajim.interface.jabber_state_images['32']:
             img = gtk.Image()
diff --git a/src/gui_interface.py b/src/gui_interface.py
index 58e5016ce81d6c6fbe5dc2272e475a212183efb4..3d96d229cb5395641d51bf6df00fd9a494d0265f 100644
--- a/src/gui_interface.py
+++ b/src/gui_interface.py
@@ -916,7 +916,7 @@ class Interface:
             request = obj.stanza.getTag('jingle').getTag('content')\
                         .getTag('description').getTag('request')
             if request:
-                # If we get a request instead 
+                # If we get a request instead
                 return
         contact = gajim.contacts.get_first_contact_from_jid(account, obj.jid)
         if helpers.allow_popup_window(account):
@@ -2675,8 +2675,8 @@ class Interface:
         gajim.thread_interface = ThreadInterface
         # This is the manager and factory of message windows set by the module
         self.msg_win_mgr = None
-        self.jabber_state_images = {'16': {}, '32': {}, 'opened': {},
-                'closed': {}}
+        self.jabber_state_images = {'16': {}, '24': {}, '32': {}, 'opened': {},
+            'closed': {}}
         self.emoticons_menu = None
         # handler when an emoticon is clicked in emoticons_menu
         self.emoticon_menuitem_clicked = None
diff --git a/src/statusicon.py b/src/statusicon.py
index 7a109d97acd23875191b0202128c9e7cd43465cc..6c16242a6aac8c117511f01c4fe71e64fda3dbda 100644
--- a/src/statusicon.py
+++ b/src/statusicon.py
@@ -118,6 +118,8 @@ class StatusIcon:
     def on_status_icon_size_changed(self, statusicon, size):
         if size > 31:
             self.statusicon_size = '32'
+        elif size > 23: 
+            self.statusicon_size = '24'
         else:
             self.statusicon_size = '16'
         if os.environ.get('KDE_FULL_SESSION') == 'true':