mask-mode: fix distribution of candidates when using -min-length