Fixed a bug inserting the second element in a double linked list.