fix linked list remove bug