fix patch files