diff --git a/classes/Importer.php b/classes/Importer.php
index e8b162ec019d78e6c9b359030083319578332d0d..dae575b251d93bf8700407b68fb606dd7aad41ac 100644
--- a/classes/Importer.php
+++ b/classes/Importer.php
@@ -28,10 +28,12 @@ final class Importer
     {
         set_time_limit(0);
         error_reporting(E_ERROR);
+
         if (is_file(FILE)) {
             echo "There is an existing " . FILE . " file on this installation. Please remove it before importing a new one";
             exit(0);
         }
+
         if (!isset($_GET['import']) && !isset($_POST['importtext'])) {
             $this->showInterface();
             exit(0);
@@ -52,11 +54,11 @@ final class Importer
             $parser->parse(RDF, $_POST['importtext']);
         } else {
             HTTPStatus::send500();
-            exit(0);
         }
 
         $triples = $parser->getTriples();
         $appArr = $this->search($triples, null, RDF . 'type', LS . 'Application');
+
         if (!(sizeof($appArr) > 0)) {
             echo "I can't find an application from the URL given";
             exit(0);
@@ -186,8 +188,7 @@ final class Importer
 
     private function createNamespaces($ns)
     {
-        require_once LOADSPEAKR_ROOT . '/namespaces.php';
-        global $conf;
+        $conf = $this->configuration->getConfigValue('conf', '');
         $namespaces = "";
 
         try {