For loop style fix