fix referrals