Fixed bug in clearing file lists