fixes bug in list.sh