flag autocomplete fix