Correction of a function