fix list length overflow  bug