Fix the list mode check