api bug found and fixed