diff --git a/plugins/gtkgui/roster_window.py b/plugins/gtkgui/roster_window.py
index 51aa8d87c80e3a7553e0482227f4024c2d2edbbe..a9ea1ebd0e27a4989383d8da2ca0edd1859136cb 100644
--- a/plugins/gtkgui/roster_window.py
+++ b/plugins/gtkgui/roster_window.py
@@ -124,7 +124,7 @@ class roster_window:
 		if user.groups == []:
 			if user.jid.find("@") <= 0:
 				user.groups.append('Agents')
-			else:
+			elif user.groups == []:
 				user.groups.append('general')
 
 		if (user.show == 'offline' or user.show == 'error') and not showOffline\
@@ -922,8 +922,7 @@ class roster_window:
 	def on_gajim_window_delete_event(self, widget, event):
 		"""When we want to close the window"""
 		if self.plugin.systray_visible:
-			self.window.iconify()
-			win.skip_taskbar_hint = True
+			self.window.hide()
 		else:
 			self.quit_gtkgui_plugin()
 		return 1
diff --git a/plugins/gtkgui/systray.py b/plugins/gtkgui/systray.py
index 54b639fdf162e18edef285257f6be61cc60213a8..553de4e3072b94d79ddfa64f7a16329fdb618da0 100644
--- a/plugins/gtkgui/systray.py
+++ b/plugins/gtkgui/systray.py
@@ -175,14 +175,10 @@ class systray:
 		if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
 			if len(self.jids) == 0:
 				win = self.plugin.roster.window
-				print 'before', win.is_active()
 				if win.is_active():
-					win.iconify()
-					win.skip_taskbar_hint = True
+					win.hide()
 				else:
 					win.present()
-					win.skip_taskbar_hint = False
-				print 'after', win.is_active()
 			else:
 				account = self.jids[0][0]
 				jid = self.jids[0][1]