fixed a bug in the field-based query

fixed a bug in the field-based query for getResult