minor fix when datatable is empty