fix the duplicated api bug