bugfix on minLength