Fixed cleanup order for markov model order > 0