diff --git a/includes/batch.inc b/includes/batch.inc
index 13e8500..5036716 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -330,7 +330,7 @@ function _batch_finished() {
     }
 
     // Let drupal_redirect_form handle redirection logic.
-    $form = isset($batch['form']) ? $batch['form'] : array();
+    $form = isset($_batch['form']) ? $_batch['form'] : array();
     if (empty($_batch['form_state']['rebuild']) && empty($_batch['form_state']['storage'])) {
       drupal_redirect_form($form, $redirect);
     }
