fix bug of chapter04