fix the datatable query issue