Fixing linked list