fixed publishing script