fix minLength