fix for loop typo