fix the bug that sometime you cannot get the latitude and longitude of the place