diff --git a/examples/api/counter_column.html b/examples/api/counter_column.html
index 3e26879d..fa84f37c 100644
--- a/examples/api/counter_column.html
+++ b/examples/api/counter_column.html
@@ -15,13 +15,14 @@
$(document).ready(function() {
$('#example').dataTable( {
"fnDrawCallback": function ( oSettings ) {
+ var that = this;
+
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
- for ( var i=0, iLen=oSettings.aiDisplay.length ; i