Correction of loop