Fix filtering issues with concatenated files.