Publicate script fixes