fixes the publish task