fix tracking of invite_by for invites