fix file deleting