NOT WORKING! segmentation fault location found, but reason is not found.