diff --git a/code/administrator/components/com_files/views/files/tmpl/default.php b/code/administrator/components/com_files/views/files/tmpl/default.php
index <HASH>..<HASH> 100644
--- a/code/administrator/components/com_files/views/files/tmpl/default.php
+++ b/code/administrator/components/com_files/views/files/tmpl/default.php
@@ -87,8 +87,8 @@ window.addEvent('domready', function() {
 

     Files.createModal = function(container, button){

         var modal = $(container);

-        document.body.grab(modal);

         modal.setStyle('display', 'none');

+        document.body.grab(modal);

     	$(button).addEvent('click', function(e) {

     		e.stop();
New file and folder boxes are visible before the modals open