Fixed not starting at 0 in for loop