Fix sealing of mediator