fix bug in cart

fix bug in cart