fixed bug: referrals with no subdomains didn't go through