fixed minor issue arising from autocomplete