update middlewares, fixed 264