fixing referral count for email