Fixing publish script