File deletion fix