fix an error of chapter 7, thanks to Liusic