fix mainline_chart_km_sorting error