diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py
index 240666b3c94d2d5cf44cd151876256890303aabb..e634fdaf0446e687646b70ef7d46e0e8afe8cec3 100644
--- a/src/gtkgui_helpers.py
+++ b/src/gtkgui_helpers.py
@@ -1100,6 +1100,8 @@ def make_jabber_state_images():
                 if pix_16_type == Gtk.ImageType.ANIMATION:
                     animation = pix.get_animation()
                     pixbuf = animation.get_static_image()
+                else:
+                    pixbuf = pix.get_pixbuf()
             else:
                 pixbuf = pix.get_pixbuf()
             scaled_pix = pixbuf.scale_simple(24, 24, GdkPixbuf.InterpType.BILINEAR)