Fix linked list bug.