fix nearest location