Change the typo in for loop