Fix the logic for cart/checkout exception.