Fixed a problem where tracks would be connected even when the jump
between them was larger than the given maximum