Fix distance value when total_distance in summary tag differs from the
last record distance. This can happen when user specifies his own
distance value after training.