fix dt buffer crash bug