fix: should check type of qry argument.