Corrects minor query mistakes.