fix publish error