fixed connection#publish