Fixing double linked list