named captures worked for two names only
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index 0231d67..150c4e2 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1743,7 +1743,7 @@
 
         v->get_handler = ngx_http_variable_not_found;
 
-        p += i + size;
+        p += size;
     }
 
     return re;