A training does not stop automatically after the end of the planned training

How do I configure that my training, created with garmin connect stops automatically after the configured training distance? Actually, after reching the training distance, the 165 does not stop the training.