diff --git a/Library/ClassDefinition.php b/Library/ClassDefinition.php
index <HASH>..<HASH> 100644
--- a/Library/ClassDefinition.php
+++ b/Library/ClassDefinition.php
@@ -1429,7 +1429,7 @@ class ClassDefinition
                 if (!$check) {
                     throw new CompilerException('Unknown class entry for "' . $className . '"');
                 } else {
-                    $classEntry = 'zephir_get_internal_ce(SS("phalcon\\\\mvc\\\\application") TSRMLS_CC)';
+                    $classEntry = 'zephir_get_internal_ce(SS("'.str_replace('\\', '\\\\', strtolower($className)).'") TSRMLS_CC)';
                 }
         }
Fetch class entry name for zephir_get_internal_ce