fixing bad logic in cart