Segmentation Fault problem Solved