diff --git a/flag.rules.inc b/flag.rules.inc
index 2b98f74..22896bb 100644
--- a/flag.rules.inc
+++ b/flag.rules.inc
@@ -152,6 +152,10 @@ function flag_rules_event_info() {
         'variables' => $variables,
         'access callback' => 'flag_rules_integration_access',
       );
+
+      // Remove the flagging variable: the flagging is already deleted when
+      // the rules event is invoked.
+      unset($variables['flagging']);
       $items['flag_unflagged_' . $flag->name] = array(
         'group' => t('Flag'),
         'label' => t('A @flag-type has been unflagged, under "@flag-title"', array('@flag-title' => $flag->get_title(), '@flag-type' => t($flag->entity_type))),
diff --git a/includes/flag/flag_flag.inc b/includes/flag/flag_flag.inc
index d8050e4..748de1d 100644
--- a/includes/flag/flag_flag.inc
+++ b/includes/flag/flag_flag.inc
@@ -591,7 +591,6 @@ class flag_flag {
               'flag' => $this,
               'flagged_' . $this->entity_type => $entity_id,
               'flagging_user' => $account,
-              'flagging' => $this->get_flagging($entity_id, $account->uid),
             );
             rules_invoke_event_by_args($event_name, $variables);
           }
