fix main.js geolocation