For loop with typo fixes