viterbi predictor fixes