It's easy to get caught this way, especially if you are getting ff mileage on both ticktes or using the same credit card for both bookings.
If you really want to aviod this use different airlines for each leg. In your case, it would have been easy to use both US and DL, nonstop each way.
TW