Correction logic