fix get location