fix a cart bug