Fixed huge performance bug in datatables