Fixed bugs of markov. To make the data right.