Fix rotation of a markov chain