Publish error fix