fixed error on chap 2.