Fixed the issue with different versions of pubsub