Initialize datatable correctly when searching