Fix publishing to topic.