fix bug in checkList