fix for loop increment