#1082 fix minlength for autocomplete