fix a bug with missing minLen in ctor