Fix bug when using -min-len with pure mask mode.