Fix mediator not defined