correcting patch files