fix up segmented viterbi output