Fix tasks for publish