Same issue as above for the for loop