fixing query typo