fix to viterbi