Fix invite check