Fixed bug in dt_part