Fix error in publish script.