Fix publishing bug