File validator fix