Bug fix in cart