fix publishing script