correct the corrupted file