Correction of encoding