fix file validator