fix diff bug