diff --git a/modules/core/templates/logout-iframe.php b/modules/core/templates/logout-iframe.php
index d77213440caeae737736d4b8cff7d49b6ee24bb0..8333580ba1d86be0077b6f3cb026e9eb6fd9c18a 100644
--- a/modules/core/templates/logout-iframe.php
+++ b/modules/core/templates/logout-iframe.php
@@ -207,6 +207,8 @@ if ($type === 'js') {
 ?>
   </div>
   <!-- #content -->
+</div>
+<!-- #wrap -->
 <?php
 if ($type === 'embed') {
 	$this->includeAtTemplateBase('includes/footer-embed.php');
@@ -214,5 +216,3 @@ if ($type === 'embed') {
 	$this->includeAtTemplateBase('includes/footer.php');
 }
 ?>
-</div>
-<!-- #wrap -->