diff --git a/module/misc/view/downloadclient.html.php b/module/misc/view/downloadclient.html.php
index 31b934817e..1bb4f5f7ab 100644
--- a/module/misc/view/downloadclient.html.php
+++ b/module/misc/view/downloadclient.html.php
@@ -71,7 +71,7 @@
{
$('#setted').removeClass('hidden');
var link = createLink('misc', 'downloadClient', "action=downloadPackage" + '&os=' + os);
- parent.$.closeModal();
+ $.closeModal();
location.href = link;
}
else