fix core dump on query method