minor tweak in pubsub publish