fix publish bug