fixed segmentation fault error