Olivia Munn showed off her figure in a sexy bikini to mark her 40th birthday, but the photo shoot didn't quite go as planned.

The “Love Wedding Repeat” star shared a video on Instagram in her bikini as she struck a pose, but then she ran into a mishap.

Munn was by a waterfall and she stumbled backward as the video was being taken. The “Newsroom” actress gripped her foot in pain before the video cut away.

OLIVIA MUNN ON GETTING MARRIED SOMEDAY: 'I NEVER HAVE EVER BEEN THAT GIRL'

“2020 strikes again,” she captioned the clip. “Anyway, thanks for the birthday wishes!”

Fortunately, it seems the star didn't suffer any serious harm. Scooter Braun, Zachary Gordon, Rachel Zoe and more were among Munn’s friends who commented with laughing emojis.

The actress went on a camping trip for her 40th birthday celebrations.

OLIVIA MUNN SHOWS OFF HER TONED LEGS IN REVEALING INSTAGRAM PIC

“Camping won’t be that hot they said. There’ll be so much to do they said,” Munn said in photos where she seemed bored by the outdoorsy trip.

Olivia Munn shared a video that went awry to celebrate her 40th birthday. (Raymond Hall/GC Images)

CLICK HERE TO GET THE FOX NEWS APP

On Sunday she updated fans about the trip and said, “Still camping. Still hot. But more fun.”