fix: bug in referral mailer