fix bug with dt being huge the first time