For loop fix2