Reorder middlewares