Fix file create error