diff --git a/libraries/log4php/LoggerPropertyConfigurator.php b/libraries/log4php/LoggerPropertyConfigurator.php
index 9d79bd989d190cb1a4a66e7172b6619ee4a98ad0..8969499ad1e7887c451f05fe6573213a6c829041 100644
--- a/libraries/log4php/LoggerPropertyConfigurator.php
+++ b/libraries/log4php/LoggerPropertyConfigurator.php
@@ -14,7 +14,6 @@ class LoggerPropertyConfigurator {
 	static $singleton = false;
 	
 	function __construct() {
-		LoggerPropertyConfigurator::$singleton = $this;
 	}
 	
 	function configure($configfile) {
@@ -59,6 +58,7 @@ class LoggerPropertyConfigurator {
 	}
 	
 	static function getInstance() {
+		if (!self::$singleton) self::$singleton = new static();
 		return self::$singleton;
 	}
 }