diff --git a/src/Leevel/Page/Page.php b/src/Leevel/Page/Page.php
index <HASH>..<HASH> 100644
--- a/src/Leevel/Page/Page.php
+++ b/src/Leevel/Page/Page.php
@@ -650,7 +650,7 @@ class Page implements IPage, IJson, IArray, IHtml, JsonSerializable
 
         if (null === $render || is_string($render)) {
             $render = $render ?: $this->getRender();
-            $render = 'Leevel\Page\\'.ucfirst($render);
+            $render = __NAMESPACE__.'\\'.ucfirst($render);
             $render = new $render($this);
         } elseif (!$render instanceof IRender) {
             throw new RuntimeException('Unsupported render type.');
diff --git a/src/Leevel/Router/Router.php b/src/Leevel/Router/Router.php
index <HASH>..<HASH> 100644
--- a/src/Leevel/Router/Router.php
+++ b/src/Leevel/Router/Router.php
@@ -438,7 +438,7 @@ class Router implements IRouter
      */
     protected function normalizeMatchedData(string $matche): array
     {
-        $matche = 'Leevel\Router\Match\\'.$matche;
+        $matche = __NAMESPACE__.'\\Match\\'.$matche;
 
         return (new $matche())->matche($this, $this->request);
     }
refactor: use __NAMESPACE