fixed publish_msgs