Corrected loop