fixed the segmentation fault