datatable orders pagination bug fixing