fixed a bug with the cart