fix error in chapter 6