Fix Ch. 8 exercise error