Fixed segmentation error.
Fixed segmentation error.