Fixed referrals routing issue