Miley Cyrus faced a late-night New Year’s Night costume mishap with grace.

After performing on her NBC New Year’s Night special, the singer lost her top while performing, forcing her to rapidly improvise and change her wardrobe while still performing.

After performing her smash “We Can’t Stop,” Cyrus shifted to another famous song, “Party in the U.S.A.” Cyrus danced in a silver costume, gripping onto her top as she performed the song’s opening words, before making her way backstage while her band and backing singers continued to play.

During the first chorus of “Angels Like You,” the “Angels Like You” singer returned to the performance stage in a red jacket she had previously worn earlier in the show.

“Everybody’s definitely looking at me now,” Miley Cyrus quipped, mirroring the words of her 2009 hit. “I’m still in the most clothes that I’ve ever worn on stage,” she added in between lyrics.

“Thank you so much, everybody, thank you. Tonight’s show was all about being flexible, rolling with the punches, and making the best out of even the worst circumstances. And that resilience shouldn’t end here. Let’s bring that into the New Year with us,” Miley said at the conclusion of the  program. “We’ve all learned how to expect the unexpected, and rather than see it as a problem, let’s see it as an opportunity. I wish everyone here in Miami and everyone watching from home a happy and healthy 2022. Thank you for making tonight possible. You were really all that I needed to have the ultimate party.”

The episode, which was live-streamed on Peacock and aired live on NBC, was shot in Miami during the country’s response to the COVID-19 epidemic and the rise of the omicron strain. Cyrus declared at the start of the concert that the whole audience had been vaccinated.

Lorne Michaels, creator of Saturday Night Live, hosted Miley’s New Year’s Eve Party, which included Pete Davidson as a co-host. Executive producers include Miley Cyrus and producer Lindsay Shookus.

In a statement last month, Jen Neal, the VP for Live Events, said “In what is sure to be an exciting and fun evening, we are looking forward to partnering with Lorne Michaels and ringing in 2022 with a night of incredible entertainment, led by Miley and Pete.”

First time since 2004 that NBC’s New Year’s Eve coverage has not been anchored by Carson Daly.