fix for HasLocation method