Fix the linked-list