fix NEventPerInputFile