Realm pubsub fix