Jennifer Lopez suffered a wardrobe malfunction at the tail end of her Las Vegas show All I Have this past Saturday (January 23), just three days after the residency debuted.

Mercifully, the costume gaffe took place after her "On the Floor" finale: The pants on JLo’s bedazzled bodysuit split right down the middle as she took her final bow, but the Shades of Blue actress remained the consummate professional. She ignored the rip and thanked fans for coming out before eventually heading off stage.

Lopez’s Vegas residency kicked off on January 20 to a star-studded crowd at The Axis Theater in Planet Hollywood. Celebrities like Gina Rodriguez, Ryan Seacrest, Rebel Wilson and more came out to the support the singer, with longtime collaborator Ja Rule taking the stage with JLo to perform their 2001 hit “I’m Real.”

Justin Bieber was also in the audience with his manager Scooter Braun, who posted an Instagram video of the two singing along to "Waiting For Tonight" as his wife looks on in embarrassment.

The show sees Lopez performing an array of her most popular hits such as “If You Had My Love,” “Love Don’t Cost A Thing” and “Waiting For Tonight,” with elaborate stage backdrops that even include a massive 6 train — an obvious reference to both the New York native's debut album On the 6 and her Bronx upbringing.

Check out JLo's wardrobe malfunction in the TMZ video above.

See Photos From Jennifer Lopez's All I Have Show