Correct fix for #5164

894a3f2c9fe111af35dee4f5e8e711259b893fb6
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 7be5fd4..cae01ed 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -1044,7 +1044,7 @@
 			if ( ! isset($property))
 			{
 				$property = strtolower($class);
-				isset($this->_ci_varmap[$property]) && $property = $this->_ci_varmap[$object_name];
+				isset($this->_ci_varmap[$property]) && $property = $this->_ci_varmap[$property];
 			}
 
 			$CI =& get_instance();