fix linkedlist delete_allnodes