fix compile issuse on readIntoList function