The last segment of a track could be removed when the iterator does not correctly loop. Keeping the ll within bounds and checking for equivalency instead of comparison works for last point