diff --git a/src/Middleware/Middleware.php b/src/Middleware/Middleware.php
index <HASH>..<HASH> 100644
--- a/src/Middleware/Middleware.php
+++ b/src/Middleware/Middleware.php
@@ -41,7 +41,7 @@ class Middleware implements MiddlewareInterface
     public function __invoke($request)
     {
         if ($this->isMatch($request)) {
-            $app      = $this->next;
+            $app      = $this->app;
             $response = $app($request);
             if ($response) {
                 return $response;
bug fix: use the main app from $this->app, not $this->next.