Fix the variable for loop