fixed mutation in viterbi