Fixed publishing script