Fix publish script