fix shopping cart api bug