diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 9ec053a95..3227b94aa 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -38,8 +38,8 @@
if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
-global $dirname;
-require_once $dirname."/lib/ac_common.php";
+
+require_once NOALYSS_INCLUDE."/lib/ac_common.php";
global $http;
$http=new HttpInput();