Fixed removal of file