fix the error in dlist.c for the [bug] above