fix diff simulation