fix bug in list