Zero and Caveman escape the camp. The curse is broken when Stanley carries Zero up the mountain. (Zero is the descendant of Madame Zeroni, and a Yelnats must carry a Zeroni up the mountain.) They survive on top of 'God's Thumb' by eating onions. Then they climb back down and find Kate's treasure in a hole. The boys are protected from the seven-spotted yellow lizards in the hole because of all the onions they ate. The warden wants the money, but it has Stanley's name on it (Zero reads this - because Stanley taught him!). The camp is shut down and the Warden, Mr. Sir, and Mr. Pendanski are arrested. Stanley gives Zero half the treasure, and Zero spends his hiring detectives to find his mom. Stanley's dad finds the recipe for foot odor: peaches and onions. They call it Sploosh, after the stuff in jars that Zero ate to survive. The baseball player that Stanley supposedly stole trainers from advertises the Sploosh. Stanley and Zero end up going back to school together and not just Stanley.