viterbi predictor state path probability fix