[Query Processing] bug fix