Fixed problem with getInvite