diff --git a/src/common/events.py b/src/common/events.py
index d796cfefb953a6561f93c068d9f28a19b6ac0553..ddb7eef2eb4363d00161bf74ac79247874d0f53c 100644
--- a/src/common/events.py
+++ b/src/common/events.py
@@ -143,8 +143,8 @@ class Events:
 			self.fire_event_removed(removed_list)
 			return
 		# no event nor type given, remove them all
-		del self._events[account][jid]
 		self.fire_event_removed(self._events[account][jid])
+		del self._events[account][jid]
 
 	def change_jid(self, account, old_jid, new_jid):
 		if not self._events[account].has_key(old_jid):