Correction regarding to loop