bug fix

fix on query entry