publish: solve repeat query bug

generated from commit 4f48234654fa34baf1f1d88f69eaf00f3d995cf5