Two Palm Beach County car dealerships embroiled in controversy have lost their fight to keep ownership affiliation with automaker Hyundai Motor America Corp.—after summary judgment against them before a federal judge in the U.S. District Court for the Southern District of Florida.

According to the ruling, a sex sandal is partly to blame.