Correction of errors