Fix for loop variable