Fixed dev error in pubsub code