fix filename extractor