minor bug fix ch 10