diff --git a/src/system/modules/metamodels/MetaModels/BackendIntegration/Boot.php b/src/system/modules/metamodels/MetaModels/BackendIntegration/Boot.php
index <HASH>..<HASH> 100644
--- a/src/system/modules/metamodels/MetaModels/BackendIntegration/Boot.php
+++ b/src/system/modules/metamodels/MetaModels/BackendIntegration/Boot.php
@@ -154,7 +154,7 @@ class Boot
 	public static function perform()
 	{
 		// Do not execute anything if we are on the index page because no User is logged in
-		if (\Environment::get('script') == 'contao/index.php')
+		if (strpos(\Environment::getInstance()->script, 'contao/index.php') !== false)
 		{
 			return;
 		}
adjust Environment call to be compatible with contao <I>