Former ABBA stars Bjorn Ulvaeus and Benny Andersson won a court battle Friday over who wrote the script for one of their musicals.

The feud between Ulvaeus and Andersson and writer Carl-Johan Seth concerned “Kristina fran Duvemala,” viewed by more than 1 million people in Sweden and expected to be cast on Broadway. Ulvaeus and Andersson wrote the songs and music for the play.