bug fix in dt_2_grid. Thanks Gabriel!