(The award went to her “Modern Family” co-star, Julie Bowen.)

But that wasn’t the big drama for Vergara that night.

No, that was when her turquoise Zuhair Murad gown split at the butt.

Sofia Vergara poses on the red carpet

She also posted an image of the seamstress at work repairing the gown.

Unfortunately, the night was a flop for the star.

She didn’t win the awardandshe was panned for her mermaid-silhouette Dolce and Gabbana gown.

Sofia Vergara on the 2012 Emmys red carpet

At least we can be grateful that she avoided wearing purple gloves.

A sheer top and lacy lingerie?

That’s what you wear if you’re Sofia Vergara.

Sofia Vergara compared to Jessica Rabbit

Sofia Vergara out to dinner in Paris