fix the discipline publishing script after the publish operation change