Fix getMembersInfos function of query.