Correction for query