Bug fix for hybrid Markov + Mask mode.