Fix file not exist bug