Fix geolocation crash