fix linked list node implementation