fix text query