Fixed for loop