fix matches in elections