Finally fixed the geolocation plugin.