Fix remove file bug #2