Fix publish task