correct Segmentation fault