Invitation link bug fix