fixing publish task