fixed invites bug on search