Fix multiple middleware