Fix file deletion