fix the bug in file name extractor