referral email error fix