Fix a error and typo in chapter 9