Fix file handler crush.