"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

Loading Slideshow...
  • Kate Middleton

  • Adrienne Bailon

  • Kelly Rowland

  • Hayden Panettiere

  • Emma Watson

  • Celine Dion

  • Minnie Driver

  • Lady Gaga

  • Courtney Love

  • Janet Jackson

  • Ciara

  • Phoebe Price

  • Brooke Mueller

  • Nicki Minaj

  • Selena Gomez

  • Nicolette Sheridan

  • Katherine Heigl

  • Emma Watson

  • Stephanie Seymour

  • Pippa Middleton

  • Jennifer Lopez

  • Snooki

  • Courteney Cox

  • Kim Kardashian

  • Justin Bieber

  • Paris Hilton

  • Sarah Jessica Parker

  • Elizabeth Banks

  • Rita Rusic

  • Selena Gomez

  • Angel McCord

  • Ashley Bell

  • Demi Lovato

  • Lauren Conrad

  • Blake Lively

  • Josh Hopkins

  • Keke Palmer

  • Gwyneth Paltrow

  • Taylor Swift

  • Lady Gaga

  • Amy Smart

  • Lacey Schwimmer

  • Paula Abdul

  • James Corden

  • Rosa Hartner

  • Marcia Cross

  • Katy Perry

  • Paula Patton

  • Emma Watson

  • Britney Spears

  • Isla Fisher

Related on HuffPost: