diff --git a/src/roster_window.py b/src/roster_window.py
index 99ec89d86155531724456d89036cbb4da2b001ee..9c740ad6728e7b04c5715ef134640546e3f69b71 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -2648,7 +2648,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
 	def close_all(self, account):
 		'''close all the windows from an account'''
 		self.close_all_from_dict(gajim.interface.instances[account])
-		for ctrl in gajim.interface.msg_win_mgr.get_controls():
+		for ctrl in gajim.interface.msg_win_mgr.get_controls(acct = account):
 			ctrl.parent_win.remove_tab(ctrl)
 
 	def on_roster_window_delete_event(self, widget, event):