Fixes geolocate bug introduced in 45b2355f38. Ref #18.