Fixed major bug introduced in 0.8 that messed up chapters.