Fixed publish script