chp10 bug fix