fix file deleting error