fix publish script.