Fix file handler