Fix publish script.