Fixing dt update