diff --git a/backup/restore_check.html b/backup/restore_check.html
index 2bf20935d94..ad699f6634c 100644
--- a/backup/restore_check.html
+++ b/backup/restore_check.html
@@ -261,7 +261,7 @@
                 } else {
                     $optdimmed = '';
                 }
-                echo "<a $optdimmed href=\"restore.php?course_id=$course->id&launch=check&id=$id&file=$file\">".format_string($course->fullname).' ('.format_string($course->shortname).')</a><br />'."\n";
+                echo "<a $optdimmed href=\"restore.php?course_id=$course->id&amp;launch=check&amp;id=$id&amp;file=$file\">".format_string($course->fullname).' ('.format_string($course->shortname).')</a><br />'."\n";
             }
             print_simple_box_end();
         } else {
diff --git a/backup/restore_form.html b/backup/restore_form.html
index 83b5f14cf04..5cb4a790f8d 100644
--- a/backup/restore_form.html
+++ b/backup/restore_form.html
@@ -510,7 +510,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
       
     }
 ?>
-</td></tr></table>
+</table>
 
 <hr/>
 <?php