Fixed referral bugs that counted non accepted invites