diff --git a/plugins/banner_tweaks/plugin.py b/plugins/banner_tweaks/plugin.py
index cd3e11dcd15af871639901bbc5cf38c8fd067af4..a100cfe456b4cb939aaef897c79f129173e6ed9e 100644
--- a/plugins/banner_tweaks/plugin.py
+++ b/plugins/banner_tweaks/plugin.py
@@ -79,12 +79,12 @@ class BannerTweaksPlugin(GajimPlugin):
             chat_control.banner_status_label.set_markup(status_text)
 
         if not self.config['show_banner_image']:
-            if chat_control.type_id == 'chat':
+            if chat_control.TYPE_ID == message_control.TYPE_GC:
                 banner_status_img = chat_control.xml.get_object(
-                    'banner_status_image')
+                    'gc_banner_status_image')
             else:
                 banner_status_img = chat_control.xml.get_object(
-                    'gc_banner_status_image')
+                    'banner_status_image')
             banner_status_img.clear()
 
         # TODO: part below repeats a lot of code from ChatControl.draw_banner_text()