FILE - In this April 26, 2016 file photo, the logo of Hyundai Motor Co. is seen on a vehicle displayed at the company's showroom in Seoul, South Korea. Hyundai is recalling about 41,000 small SUVs in the U.S., Thursday, Sept. 15, because a software glitch can stop the vehicles from accelerating. The recall came after pressure from the National Highway Traffic Safety Administration. It covers 2016 Tucson models with seven-speed dual-clutch automatic transmissions made from May 20, 2015 to May 31, 2016. (AP Photo/Ahn Young-joon)

DETROIT (AP) — Hyundai is recalling nearly 63,000 midsize cars in the U.S. because the panoramic glass sunroofs can come loose and fly into traffic.

The recall covers certain Sonata midsize cars from the 2015 and 2016 model years, including gas-electric hybrids.

The South Korean automaker says in government documents that a wind deflector anchor plate in front of the sunroof wasn’t bonded properly to the car. A loose deflector can detach and interfere with the roof as it closes. If the owner tries to force the roof closed, it can fly off.

The company says it has no reports of accidents or injuries due to the problem. But Hyundai had several reports of detached sunroofs in the U.S.

Dealers will repair the wind deflector anchor plate at no cost to customers. Owners will be notified by mail in December about when to take their cars in for service.