diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index d72f5552fde504ebd970d6cc8b15680fb3e1a9f1..c898628bcdf6cd3a2f866c903d3b14921194feec 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -41,7 +41,7 @@ class OC_TemplateLayout extends OC_Template {
 		}
 		$this->assign( 'apps_paths', str_replace('\\/', '/',json_encode($apps_paths)),false ); // Ugly unescape slashes waiting for better solution
 
-		if (!OC_AppConfig::getValue('core', 'remote_core.css', false)) {
+		if (OC_Config::getValue('installed', false) && !OC_AppConfig::getValue('core', 'remote_core.css', false)) {
 			OC_AppConfig::setValue('core', 'remote_core.css', '/core/minimizer.php');
 			OC_AppConfig::setValue('core', 'remote_core.js', '/core/minimizer.php');
 		}