fix invite problem