fixed data loading bug for dataTables.js