Fixed issue in the publish script