Fixed error on getMemberInvites