bug in markov_op