Fixed the line for the current average to correctly cut the new ending time.