Fix segmentation fault at line 15.