Uses i+1 in the repair.  This loop should probably go from i = 0  to i < results.size() -1 otherwise you'll get index out of bounds on the last element