When Bob says he has a lot of "big shoes to fill", Bart remembers how the robber screamed in pain when Homer stepped on his foot during the robbery. Despite wearing large clown shoes, Krusty has small feet and would not have felt Homer stepping on his toes. Bart deduces that Sideshow Bob is the real robber since he had the most to gain from Krusty's downfall, and that his big feet literally fill his long clown shoes. To prove this, he hits Bob's shoes with a mallet, making Bob scream in pain and exposing his large feet. While watching the show, the police realize they failed to notice this piece of evidence and head to the studio to arrest Bob. His crime exposed, Bob confesses the reason he framed Krusty: he hated spending years on the receiving end of his humiliating gags while Krusty "squandered a fortune on his vulgar appetites". Bob vows revenge on Bart while being led away. Krusty is freed after the charges against him are dropped. He regains the trust of the town's residents and Homer apologizes for misidentifying him. Krusty thanks Bart for uncovering the truth and sticking to his convictions. Bart hangs a picture of himself shaking hands with Krusty in his bedroom, which he refills with Krusty decor and merchandise.