Bug fix on autocomplete component