fix typo in query