fixing the publish action