Correct a corrupted file