edit corrupt file