diff --git a/install/includes/core/core_class.php b/install/includes/core/core_class.php
index dbf4403fb..25d7cc566 100644
--- a/install/includes/core/core_class.php
+++ b/install/includes/core/core_class.php
@@ -161,7 +161,7 @@ class Core
// creating a unique encryption key
$encryptionkey = uniqid(bin2hex(random_bytes(8)), false);
- $new = str_replace("%baselocator%", $data['locator'], $database_file);
+ $new = str_replace("%baselocator%", $data['userlocator'], $database_file);
$new = str_replace("%websiteurl%", $data['websiteurl'], $new);
$new = str_replace("%directory%", $data['directory'], $new);
$new = str_replace("%callbook%", $data['global_call_lookup'], $new);
diff --git a/install/index.php b/install/index.php
index 2e24f7c5d..5f689129f 100644
--- a/install/index.php
+++ b/install/index.php
@@ -328,13 +328,6 @@ if (!file_exists('.lock')) {
= __("This field can't be empty and have to end with a slash 'example/'!"); ?>
-
-
">
-
-
- = __("Type in a valid locator"); ?>
-
-