Fix invite handler