fixes some datatable issues