correct edited patch file