fix typo query