fix some problems of singly linked list relative functions