President Biden mocked former President Trump on Sunday for appearing to mix up Republican presidential candidate Nikki Haley with former Speaker Nancy Pelosi (D-Calif.) during a campaign rally this weekend.

“I don’t agree with Nikki Haley on everything, but we agree on this much: She is not Nancy Pelosi,” Biden wrote in a post on X, the platform formerly known as Twitter, attaching a campaign ad that knocked Trump for the mix-up and highlighted concerns about his mental fitness.

The ad included remarks from Haley –— the former South Carolina governor and U.N. ambassador under Trump — reacting to Trump’s Friday comments, in which he appeared to mix up the two high-profile female politicians.