fix diff lines for patching