location api bug