Fixed an error of starting at 1 in the for loop.