Sofia Vergara's stylist to the rescue!

Modern Family's stunning starlet dazzled at Sunday's Emmys in a a teal, hand-beaded Zuhair Murad gown which the Best Supporting Comedy Actress nominee accessorized with more than 175 carats of Neil Lane jewels. The only problem with her ensemble for TV's biggest night? The pesky zipper on her designer dress.

PHOTOS: What the stars wore to the 2012 Emmys

Twenty minutes before Vergara, 40, joined her cast mates Julie Bowen, Eric Stonestreet, Jesse Tyler Ferguson and others on stage to accept their show's Outstanding Comedy Series trophy, the actress found her zipper broken and her curvy backside exposed.

PHOTOS: Emmy Awards -- best dressed stars of all time

"Yes!!!! This happened 20 minutes before we won. Jajajaja. I love my life!" the newly-engaged Vergara wrote on her Who Say? page in good fun after Sunday's win, having presumably fixed her fashion gaffe before hitting the stage.

Outstanding Comedy Series wasn't Modern Family's only Emmy win Sunday. For the second year in a row, costar Bowen nabbed the title Outstanding Actress in a Comedy Series (beating out Vergara, among others), Stonestreet scored an Outstanding Supporting Actor trophy, and Steven Levitan was honored for directing the ABC series.

VIDEO: Sofia sings campfire songs on Modern Family

Backstage after her win, Bowen lavished praise on her costar Vergara. "She really doesn't get the credit she deserves as an actor. She certainly gets it as a celebrity but as an actress, she is talented and amazing and there are only a few of us who really understand that what she does is not just play herself," Bowen gushed. "She is gracious and wonderful and [she's] probably the reason why I'm even able to wear a curvy fishtail dress so I owe her a lot!"

This article originally appeared on Sofia Vergara Suffered Wardrobe Malfunction at Emmys