modify the segment fault for echo