Corrected total_distance processing in welcome view.