removed query bug