fixed query behaviour

reported in https://github.com/yansh/MoanaML/commit/93af3cbbfae43c1c0366507a20e6fd663d62bdd3