Fix file reset