The Arizona congressional candidate who changed his name to Cesar Chavez and switched to the Democratic party was thrown off the ballot by a judge on Tuesday, according to Fusion.

Chavez was removed from the ballot because 700 of his nomination petition signatures were invalid.

He was sued by Alejandro Chavez, who charged that the candidate misled voters by filing to run for the seat before switching his party affiliation from Republican to Democrat. The lawsuit also contended that any signatures collected before he switched parties are invalid.

The judge dismissed the parts of the lawsuit that charged that Cesar Chavez missed the deadline to register as a Democrat and the complaint that he purposely misled voters was dropped.

The candidate now known as Cesar Chavez ran as a Republican under his given name, Scott Fistler, in 2012 for the same seat in Arizona’s heavily Hispanic 7th congressional district.

Image via 12 News and The Arizona Republic