fixed publish script