[fix] - setting active path to middlewares