fix file removal