Fixed error in counter for loop creating linear fit array.