 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
-@@ -122,6 +122,7 @@ $(document).ready(function() {
+@@ -121,6 +121,7 @@ $(document).ready(function() {
 
  //]]>
  </script>


 <ul>
     <li>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
@@ -104,6 +104,7 @@ $(document).ready(function () {
 });
 //]]>
 </script>

+    var writeRFIDModal = $('<div/>', {
+      id: 'writeRFIDModal',
+      class: 'overlay'
+    }).prependTo('#bd');
+  } else {
+    var writeRFIDModal = $('#writeRFIDModal');
+  }
