diff --git a/html/main.php b/html/main.php
index 6699dc6ebea0ce867198c7e2fe1afff7c1460952..bedec82dc198cf06411d8a2b5f545b95d30575ab 100644
--- a/html/main.php
+++ b/html/main.php
@@ -344,7 +344,7 @@ if (isset($_POST) && count($_POST)) {
   }
 }
 
-/* Assign erros to smarty */
+/* Assign errors to smarty */
 if (session::is_set('errors')) {
   $smarty->assign("errors", session::get('errors'));
 }
diff --git a/setup/class_setupStep_Migrate.inc b/setup/class_setupStep_Migrate.inc
index d3f8f781dae667a951f8cb6416d55c7dd4c05473..a96518509c9587226b7651c63763de80bbb14710 100644
--- a/setup/class_setupStep_Migrate.inc
+++ b/setup/class_setupStep_Migrate.inc
@@ -298,10 +298,9 @@ class Step_Migrate extends setupStep
   {
     if (empty($this->checks) || isset($_POST['reload'])) {
       $this->initialize_checks();
-      foreach ($this->checks as &$check) {
+      foreach ($this->checks as $check) {
         $check->run();
       }
-      unset($check);
     }
     return parent::execute();
   }
@@ -310,10 +309,9 @@ class Step_Migrate extends setupStep
   {
     $this->is_completed = TRUE;
     parent::save_object();
-    foreach ($this->checks as &$check) {
+    foreach ($this->checks as $check) {
       $check->save_object();
     }
-    unset($check);
   }
 
   /* Check if the root object exists.