Label frequency logic: don't create a tiny segment at the end.