fixing query bug
metrics wizard