To prevent this problem from occurring again, the Twelfth Amendment was added to the Constitution in 1804. It requires that the electors cast separate ballots for president and vice president and that if no candidate receives a majority, the House chooses from the top three candidates.