Fix datatable bug