Fix file delete error.