Corrected loop not starting at 1