fix compute avg_pace error