fixing markov