fixed bug that could cause missed files by adding match_header