Fix queries on ReferenceListField