                     flatten_attr: flatten_attr
 
         tag_record: (doc, i) =>
-            doc.record = @metadata.skip_value + 1
+            doc.record = @metadata.skip_value + i
 
         render_result: (args) =>
 

                    value = result
                if typeof value._next is 'function' # if it's a cursor
                    @results = []
                    @truncated = false
                    @cursor = value
                    @is_feed = @cursor.toString() == '[object Feed]'
                    @missing = 0

            delete @profile
            delete @value
            delete @results
            @cursor?.close()
            delete @cursor

