small bugfix for autocomplete