Fixed publish script.