The 19th annual “Treehouse of Horror” Simpsons episode gave the show its best ratings in nearly five years, bringing in 12.5 million viewers, receiving a 6.2 preliminary rating among adults 18-49. The momentum continued throughout the night as King of the Hill brought in 8.6 million viewers, while Family Guy brought in 10 million and finally, American Dad managed to attract 7.2 million viewers — all season-high numbers.

You’re probably noticing that King of the Hill brought in 1.4 million more viewers than American Dad, yet Fox is cancelling King and keeping Dad. To those wondering why this is, it has to do with the magical demographics. American Dad manages to pull in a younger crowd which advertisers love.

Oh, and the main reason The Simpsons managed to nab such a high number of viewers was because of the scene in which Homer tries to vote for Barack Obama only to have things go terribly wrong. Watch the clip below: