fix publish state