Fix support for pubsub patterns.