fix diff parsing