Fixing publishing script