Fixed for loop.