fixing middlewares issue