Fix small bugs in chap2.

Signed-off-by: JiYou <jiyou09@gmail.com>