fix bug related to filtering and numModified files