Fix negative offset bug

point not being at the end of the region at the end of loop iteration
causing later diff's to be offset by a negative amount