For loop fix.