fixed duplicate publishing