Fixed possible segmentation fault.