During an appearance on CNN with host Jim Acosta, Capitol Police Sgt. Aquilino Gonell said that pledging allegiance to a flag that was carried during the Capitol attack is a “total disgrace.”

Gonell’s comments came after the host of the “Take Back Virginia Rally” in Henrico County called someone who held the flag—which reportedly was at the January 6 attack—to come to the stage and asked the crowd to recite the Pledge of Allegiance.

The rally was held on Wednesday to support Republican candidate Glenn Youngkin in his bid to become Virginia’s next governor ahead of the November elections.

Gonell said on Saturday that rioters during the insurrection “threw the flag on the floor and then they wanted us [Capitol police] to pick that up and they got angry about it.”

Though Youngkin didn’t attend the rally that was held to support him, he said on Wednesday that if the flag at the rally was the one that was flown during the insurrection “then we shouldn’t pledge allegiance to that flag. There is no place for violence. None in America today.”

“While I had no role in last night’s event, I have heard about it from many people in the media today. It is weird and wrong to pledge allegiance to a flag connected to January 6,” Youngkin also said in a statement to Newsweek.

Gonell called the celebration “very disappointing” and noted that attendees should have recognized police officers instead of “celebrating this individual [rioter] who committed an attack on the Capitol.”

“The way that they were using the flag is as if they did something good,” he added. “It’s beyond comprehension that they are celebrating something detrimental to the country.”

The pledge to that particular flag at the rally was condemned by others as well including Democratic nominee for Virginia governor, Terry McAuliffe.

He said that the rally “celebrating the insurrection against our country was unconscionable.”

Illinois Republican Congressman Adam Kinzinger, who is on the January 6 House committee, also denounced the rally pledge, saying that people should “boo” anyone who has flown that flag during the insurrection and “say the pledge to a flag that didn’t fly that day.”

During an appearance on CNN on Sunday, Kinzinger said that he was “disgusted” when he learned about the incident.