dealing with api bug