09/24/2012 12:08 pm ET Updated Dec 06, 2017

Sofia Vergara Shakes It On The Dance Floor At The Emmys After-Party (VIDEO)

"Modern Family" star Sofia Vergara celebrated her series' big win for Best Comedy at the 64th annual Emmy awards by shaking it on the dance floor.

The 40-year-old actress showed off her best dance moves at the HBO Emmy Party at the Pacific Design Center, and TMZ caught her on camera with all the "incredible jiggly footage."

At around 1 a.m. the Colombian actress looked like she didn't have a care in the world and likely forgot that just hours earlier she barely avoided a huge wardrobe malfunction.

Vergara looked stunning in a turquoise Zuhair Murad dress that had her looking like a mermaid on the red carpet, but the dress split just 20 minutes before the "Modern Family" cast had to take the stage to accept their big award.

“Yes!!!! This happend [sic] 20 min before we won!!!! Jajajajja. I luv my life!!!!," the actress tweeted from her WhoSay account along with a NSFW image of the back of her dress, which had split open, exposing her derrière.

Luckily the dress broke before the sexy star had to take the stage, since she was able to turn to her emergency team to stitch it up:

"20 min Modern Family won!! Dress malfuncion !!! Thank you emergency team!!!," she wrote along with a photo of herself being sewn back into the dress.


Sofia Vergara on WhoSay

Celebrity Wardrobe Malfunctions