Fixed some bugs when reselecting location on map.