Fix for referral check under undelegated.