Fixed “segmentation fault” error reported by O'Reilly