fix bugs with referral link