fix mistype in query