Fix the linked list segmentation fault!