fix bug in the cart

fix bug in the cart