Fixes bug with the autocomplete and duplicate coords.