Fixed remove file bug