fixed the airbrake middleware