bug fix for datatables events