fixed loop typo