Some code blocks weren't indented, so they ended up messing up the numbering. Indenting them fixed it.