Fix file creation