             value
 
         unless elem.id
-            json.id = elem.id = "i#{utils.uid()}"
+            json.id = elem.id = "i#{fileUid++}"
 
         for body in elem.body
             switch body.type

            autoInitCodes.push code
        else
            code += 'return _c.createItem\n'
            uid = 'n' + utils.uid()
            id ||= uid
            if codes[id]?
                id = uid

    ids

exports = module.exports = (file, filename, opts) ->
    fileUid = 0
    elems = parser file, filename
    codes = {}
    autoInitCodes = []
