Fixed the callback for string autocomplete.