Fixed a bug: when multiple files are read, just the first was filtered