diff --git a/src/gtkgui.glade b/src/gtkgui.glade
index a36a734d2b5c7c8490591bb319c600793f0fbfb5..fba9d94b5425966a0afae42e14b939a83632d130 100644
--- a/src/gtkgui.glade
+++ b/src/gtkgui.glade
@@ -6769,7 +6769,6 @@ Custom</property>
 		  <property name="active">True</property>
 		  <property name="inconsistent">False</property>
 		  <property name="draw_indicator">True</property>
-		  <signal name="toggled" handler="on_log_history_checkbutton_toggled" last_modification_time="Wed, 07 Dec 2005 14:24:05 GMT"/>
 		</widget>
 		<packing>
 		  <property name="left_attach">0</property>
diff --git a/src/vcard.py b/src/vcard.py
index aad033ee593c277ff66a839651dd06533b1b4afe..8873fb6f8c6ac3e753176d043f6b7843a6ddd8e0 100644
--- a/src/vcard.py
+++ b/src/vcard.py
@@ -101,7 +101,7 @@ def __init__(self, contact, account, vcard = False):
 		self.xml.signal_autoconnect(self)
 		self.window.show_all()
 
-	def on_vcard_information_window_destroy(self, widget = None):
+	def on_vcard_information_window_destroy(self, widget):
 		del gajim.interface.instances[self.account]['infos'][self.jid]
 
 	def on_vcard_information_window_key_press_event(self, widget, event):
@@ -304,7 +304,10 @@ def fill_jabber_page(self):
 		if self.contact.jid in gajim.config.get_per('accounts', self.account,
 			'no_log_for').split(' '):
 			log = False
-		self.xml.get_widget('log_history_checkbutton').set_active(log)
+		checkbutton = self.xml.get_widget('log_history_checkbutton')
+		checkbutton.set_active(log)
+		checkbutton.connect('toggled', self.on_log_history_checkbutton_toggled)
+		
 		resources = '%s (%s)' % (self.contact.resource, unicode(
 			self.contact.priority))
 		uf_resources = self.contact.resource + _(' resource with priority ')\