fixed the bug on list files