diff --git a/src/chat_control.py b/src/chat_control.py
index ac040856b09564bf4afdffe4ec2f7307db24038e..bd873ad896089abbca5452bb1cf4c6e255da4aba 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -1236,7 +1236,7 @@ class ChatControl(ChatControlBase):
 	def update_toolbar(self):
 		# Formatting
 		if gajim.capscache.is_supported(self.contact, NS_XHTML_IM) \
-		and not gajim.capscache.is_supported('notexistant'):
+		and not gajim.capscache.is_supported(self.contact, 'notexistant'):
 			self._formattings_button.set_sensitive(True)
 		else:
 			self._formattings_button.set_sensitive(False)