fixed a file removal error