Fix the typos, so the variables match and the code works.