fixed error in chapter 9