Bug fix: explicitly reference mediator on publish.