get query result bug fix in Adapter