bug fix for datatables