Sometimes running a name through the Internet Movie Database can really save some headaches in the future.

That's probably something Republican presidential candidate Ted Cruz has now realized after his campaign was forced to remove an advertisement for Cruz after it was discovered Amy Lindsay was among the actors featured.

Lindsay, who had a bit role in the series finale of "Star Trek: Voyager" as Lana, the wife of Robert Picardo's Doctor in the alternate future, was one of several actors who expressed concern about campaign policies of Marco Rubio, another Republican contender in the American presidential race.

Although there's nothing wrong with Lindsay appearing in "Voyager," what seemed to really get the Cruz campaign in hot water was the fact that Lindsay is likely best known for her regular work in a string of softcore porn movies, like "Kinky Sex Club" and "Radio Erotica."

BuzzFeed was the first to realize Lindsay's inclusion in the ad and connected it to the other films in her resume. Once the Cruz campaign learned of the connection, the ad was pulled, and fingers were pointed.

"Unfortunately, she was not vetted by the production company," a campaign spokesman told BuzzFeed. "Had the campaign known of her full filmography, we obviously would not have let her appear in the ad."

And yes, believe it or not, many of the "regular people" you see in campaign ads for many of the candidates are actually just actors. But Lindsay said she didn't have to put on an Oscar-winning (or AVN-winning) performance to talk about Cruz. Apparently, the actress told BuzzFeed that she is a Republican, and is in the process of deciding whether to vote for Cruz or Donald Trump. No word if she might not be swept up for a future ad supporting the real estate mogul.