fix bug in file listing