query bug fix
ddd