Fixed bug where autocomplete didn't actually provide a value