fix bugs

Outputted incorrect file list