bug fix in chapter 6 (they, that rhymes!)