Correct the file to make it valid.