Correcting publish script