fixed error in WordMarkovModel code