maxGap and dt workaround removed.
gap and dt at index are set to zero