query bug correction.