fix geolocation for ios 8