Fix dqueue bugs (prev = NULL, next = NULL).