fix cart creation issue