fixed bug in list mode