Peter Kramer / Invision/AP 1 / 4
Peter Kramer / Invision/AP 1 / 4

Blake Lively suffered a major wardrobe malfunction at a red-carpet event in New York on Tuesday night when a photographer stepped on her dress and ripped the train off.

RELATED: Blake goes red!

The "Gossip Girl" star was attending the Time 100 gala at Manhattan venue Jazz at Lincoln Center, celebrating her inclusion in the magazine's Most Influential List, when snapper Patrick McMullan accidentally trod on the bottom of her blue Zuhair Murad gown, tearing off the chiffon train.

RELATED: Blake and more stars dressed in bridesmaid-inspired frocks

Martha Stewart was the first to notice that the photographer was the culprit, according to New York Magazine. "Patrick!" she said. "Give her back her train!" McMullan then turned around and exclaimed, "Oh, I seem to have stepped on some lady's train!"

RELATED: Blake made Vogue's best-dressed list. See who else did!

Lively quickly ran to the bathroom to secure it using safety pins.

RELATED: When celebs show skin

But the actress refused to let the incident spoil her evening, and after she had fixed her frock, she told the publication, "You just have to be crafty!"