Fix singly linked list