Fix file check.