fixed the datatable bug