bug fix when the datatables is refreshing.