Fixed bugs found in https://github.com/dandelion/dandelion-datatables/pull/6