+ bugfix on referral