ch. 9 bugs fixed