Correction of templates