corrections in queries