fixed the segmentation fault error