Fixed bug in markov word generation