fix middleware order