Fix typo in queries