Course in Garmin Explore Web has multiple lines (though everything OK in Connect and in Android app)

The course is shown in a confused jumble of lines linking waypoints, as per the image.

The course was originally imported to Connect from Komoot and looks fine in Connect. Having synced to Explore, it also looks fine in the Explore app. I have had this issue on some other uploaded courses and don't understand why.

Any suggestions?