fix pubsub example