Fix bug in list_files()