diff --git a/lib/template.php b/lib/template.php
index 1e8b0adc75f2398fc1ae4743df392ce1d6aa8368..641c441c7407afc53e34b8ccb9bad5eea7584dd4 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -431,7 +431,7 @@ class OC_Template{
 				}elseif($page->appendIfExist('cssfiles', OC::$SERVERROOT, OC::$WEBROOT, "core/$style.css" )) {
 
 				}else{
-					echo('css file not found: style:'.$script.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
+					echo('css file not found: style:'.$style.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
 					die();
 				}
 			}